package com.zhuang.designpattern.visitor.user;

import com.zhuang.designpattern.visitor.visitor.Visitor;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * description: User
 * date: 2022/9/22 17:13
 * author: Zhuang
 * version: 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public abstract class User {
    public String name;      // 姓名
    public String identity;  // 身份；重点班、普通班 | 特级教师、普通教师、实习教师
    public String clazz;     // 班级
    //核心访问方法
    public abstract void accept(Visitor visitor);
}
